Show:

Q paging Class

Implements a way to display a paging indicator, especially on a mobile phone

Constructor

Q paging

(
  • [options]
)
Q.Tool

Parameters:

  • [options] Object optional

    Override various options for this tool

    • [index] Number optional

      The index of the current page, null means nothing selected

    • [total] Number optional

      The total number of pages

    • [pages] Object optional

      Information about the pages and their indicators

      • [total=5] Number optional
        The number of dots corresponding to the max
      • [current] String optional
        Override the img src representing the current page
      • [other] String optional
        Override the img src representing the other pages

Returns:

Item Index